package spittr;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 *
 * @author Sean.Y.Du
 * @date 2018/3/15
 */
@Getter
@Setter
@EqualsAndHashCode
public class Spittle {

    private final Long id;
    private final String message;
    private final Date time;
    private Double latitude;
    private Double longitude;

    public Spittle(Long id, String message, Date time, double longitude, double latitude) {
        this.id = id;
        this.message = message;
        this.time = time;
    }
}
